package com.baseweb.webadmin.service;

import com.baseweb.webadmin.core.model.bvo.UserRoleBvo;
import com.baseweb.webadmin.core.model.pojo.*;

import java.util.List;
import java.util.Map;

public interface AccountService {

//    public List<UserRoleBvo> selectUsersByPage(int pageNo, int pageSize, Map map);

    public List<ByCoinsLog> selectCoinsLogListByPage(Integer userId, Integer start, Integer offset);

    public Integer selectCoinsLogListCount(Integer userId);

    public List<ByMoneyLog> selectMoneyLogListByPage(Integer userId, Integer start, Integer offset);

    public Integer selectMoneyLogListCount(Integer userId);


    public int insertCoinsLog(ByCoinsLog byCoinsLog);
    public int insertMoneyLog(ByMoneyLog byMoneyLog);

    public Integer insertVoucher(ByUserVoucher byUserVoucher);
    public ByUserVoucher findVoucher(Integer id);
    public List<ByUserVoucher> selectVoucherListByPage(Integer userId, Integer start, Integer offset);
    public Integer selectVoucherListCount(Integer userId);

    public Integer insertWithdrawAccount(ByUserWithdrawAccount byUserWithdrawAccount);
    public ByUserWithdrawAccount findWithdrawAccount(Integer id);
    public List<ByUserWithdrawAccount> selectWithdrawAccountListByPage(Integer userId, Integer start, Integer offset);
    public Integer selectWithdrawAccountListCount(Integer userId);

    public Integer insertWithdraw(ByUserWithdraw byUserWithdraw);
    public ByUserWithdraw findWithdraw(Integer id);
    public List<ByUserWithdraw> selectWithdrawListByPage(Integer userId, Integer start, Integer offset);
    public Integer selectWithdrawListCount(Integer userId);

    public List<ByUserWithdraw> selectWithdrawListByIdsPage(List<Integer> userIds, Integer start, Integer offset);
    public Integer selectWithdrawListIdsCount(List<Integer> userIds);
}
